package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.BusinessCardVideoRequest;
import one.stand.response.BusinessCardResponse;
import one.stand.response.BusinessCardVideoResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: QIK
 * @CreateDate: 2019/6/21 17:32
 */
@RestController
@RequestMapping("businessCardVideo")
public class BusinessCardVideoController extends BaseController {


    /**
     * 添加名片视频
     * @param request
     * @return
     */
    @PostMapping("addVideo")
    public ResultModel<Boolean> addVideo(@RequestBody BusinessCardVideoRequest request){
        return businessCardVideoService.addVideo(request);
    }

    /**
     * 修改名片视频
     * @param request
     * @return
     */
    @PostMapping("uodVideo")
    public ResultModel<Boolean> uodVideo(@RequestBody BusinessCardVideoRequest request){
        return businessCardVideoService.uodVideo(request);
    }

    /**
     * 移动名片视频
     * @param request
     * @return
     */
    @PostMapping("moveVideo")
    public ResultModel<Boolean> moveVideo(@RequestBody BusinessCardVideoRequest request){
        return businessCardVideoService.moveVideo(request);
    }

    /**
     * 删除视频
     * @param request
     * @return
     */
    @PostMapping("delVideo")
    public ResultModel<Boolean> delVideo(@RequestBody BusinessCardVideoRequest request){
        return businessCardVideoService.delVideo(request);
    }
    /**
     * 删除视频
     * @param request
     * @return
     */
    @PostMapping("moveList")
    public ResultModel<List<BusinessCardVideoResponse>> moveList(@RequestBody BusinessCardVideoRequest request){
        return businessCardVideoService.moveList(request);
    }
}
